html {
  /* font-size: 0.9em; */
  font-size: 1.3em;
  height: 100%;
  /* background-color: rgba(254, 197, 86, 0.8); */
  /* background-image: url("../assets/bg.png");
  background-size: 100% 100%;
  background-position: center; */
  /* background-image: url("../assets/bg.png");
  background-size: 100% 100%;
  background-position: center center; */
  overflow-y: hidden;
}
body {
  height: 100%;
  font: normal 100% Helvetica, Arial, sans-serif;
  /* background-image: url("../assets/table-nobg.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat; */
  /* background-image: url("../assets/table-nobg.png"); */
  background-image: url("../assets/bg.png");
  background-size: 100% 100%;
  background-position: center center;
  /* background-repeat: no-repeat; */
}

.bg {
  position: fixed;
  width: 100%;
  height: 100%;
  background: url("../assets/table-nobg.png");
  background-size: 100% 100%;
  z-index: -1;
}
/* .bg .bg_1 {
  width: 100%;
  height: 100%;
  position: absolute;
  background: url("../assets/bg.png");
  background-size: 100% 100%;
  z-index: -3;
}

.bg .bg_2 {
  width: 100%;
  height: 100%;
  position: absolute;
  background: url("../assets/table-nobg.png");
  background-size: 100% 100%;
  z-index: -2;
} */

header,
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 7%;
  color: #b8860b;
}

main {
  height: 86%;
  position: relative;
}
header h2 {
  width: 90%;
}
#playerA,
#playerB,
#roundtable {
  height: 35%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*牌桌*/
#roundtable {
  background-color: rgba(68, 139, 97, 0.6);
  height: 30%;
}
#roundtable .wrap {
  width: 100%;
  height: 90%;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
}
#roundtable .wrap .role {
  display: flex;
  /* justify-content: center; */
  align-items: center;
  height: 25%;
  color: #ffe4c4;
  /* white-space: pre; */
  width: 90%;
  font-size: 1.2em;
}

/*庄家和玩家*/
#playerA .wrap,
#playerB .wrap {
  width: 90%;
  height: 80%;
  border: dashed 2px #ff7473;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1em;
}
ul[class="banker"] li,
ul[class="player"] li {
  display: inline-block;
  width: 5em;
  height: 7em;
  margin: 0.5em;
  /* float: left; */
  background-size: 100% 100%;
}

/*按钮*/
#selector {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50%;
}
#selector button {
  width: 7em;
  height: 4em;
  /* border-radius: 1em; */
  /* border: solid 1px #ff7473; */
  margin: 0 1em;
  background-color: transparent;
  font-size: 1.3em;
  color: #fff;
  outline: none;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: bottom 20% right 50%;
  background-size: 100% 80%;
  border-style: none;
}
#selector button#rules {
  background-image: url("../assets/btn_03.png");
}
#selector button#begin {
  /* border-color: #3396f5;
  background-color: #3396f5; */
  background-image: url("../assets/btn_02.png");
}

#selector button#addCard {
  background-image: url("../assets/btn_02.png");
}
#selector button#stopCard {
  background-image: url("../assets/btn_01.png");
}
button:hover {
  opacity: 0.9;
  transition: all 60ms ease;
}
button:active {
  opacity: 0.95;
  transform: scale(0.9);
  transition: all 60ms ease;
}

/*赌注样式*/
#selector #wager {
  width: 4em;
  height: 4em;
  padding: 0.5em;
  background: #f0fafb;
  border-radius: 50%;
  font-size: 0.9em;
  text-align: center;
  color: rgba(128, 128, 128, 0.9);
  line-height: 4em;
  box-shadow: 0 0 1em rgba(128, 128, 128, 0.9);
}

/*消息框展示总牌值样式*/
.count {
  position: absolute;
  left: 50%;
  margin-left: -2em;
  width: 4em;
  height: 2em;
  background-color: #eef3f0;
  border-radius: 0.5em;
  text-align: center;
  line-height: 2em;
}
#playerA .count {
  top: -2em;
}
#playerA .count:before {
  content: "\25BC";
  color: #eef3f0;
  position: absolute;
  font-size: 1em;
  top: 1.3em;
  left: 1.5em;
}
#playerB .count {
  bottom: -2em;
}
#playerB .count:before {
  content: "\25B2";
  width: 0;
  height: 0;
  color: #eef3f0;
  position: absolute;
  font-size: 1em;
  top: -1.2em;
  left: 1.5em;
}

.hide {
  display: none;
}
.block {
  display: inline-block;
}
/*遮罩层样式*/
.mask {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
}
.promot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22em;
  height: 22em;
  margin-left: -11em;
  margin-top: -11em;
  padding: 0.5em;
  background-color: rgba(240, 250, 251, 0.8);
  text-align: justify;
  line-height: 3em;
  overflow: auto;
  border-radius: 0.5em;
  box-shadow: 0 0 1em #f0fafb;
  background-image: url("../assets/dialog_title_01.png");
  background-size: 100% 100%;
  color: #fff;
  padding-top: 1em;
}
.result {
  text-align: center;
}

/*webkit滚动条*/
::-webkit-scrollbar {
  width: 0.5em;
}
::-webkit-scrollbar-track {
  background-color: rgb(254, 197, 87, 0.8);
} /* 滚动条的滑轨背景颜色 */

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
} /* 滑块颜色 */

::-webkit-scrollbar-button {
  background-color: rgb(254, 197, 87, 0.8);
  border-radius: 5px;
} /* 滑轨两头的监听按钮颜色 */

.unknow {
  background: url(../assets/unknow.png) no-repeat;
}

.text_center {
  vertical-align: middle;
  text-align: center;
  margin-top: 2em;
  font-size: 4em;
}

.peace_bureau {
  margin-top: 3em;
  font-size: 3em;
}
